#include "usart.h"
#include "Delay.h"
#include <string.h>
u8 buffer[100] = {0};
u8 size = 0;
int main()
{
    
    Usart_Init();

    //Usart_SendChar('a');
    //Usart_SendChar('t');
    //Usart_SendChar('\n');

    u8* str = "my a frist usart test!\n";
    Usart_SendString(str,strlen((char*)str));

    while (1)
    {
        //Usart_SendChar('X');
        //Usart_SendChar('\n');

        //Delay_ms(1000);

        u8 ch = Usart_ReceiveChar();
        Usart_SendChar(ch - 32);
        //size = Usart_ReceiveString(buffer);
        //Usart_SendString(buffer,size);
    }
}
